package com.ebuildy.component
{
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import mx.controls.Label;

	public class LinkUnderLine extends Label
	{
		public function LinkUnderLine()
		{
			super();
			
			super.mouseChildren = false;
			super.useHandCursor = true;
			super.buttonMode = true;
			
			this.addEventListener(MouseEvent.ROLL_OVER, onRollover,false,0,true);
			this.addEventListener(MouseEvent.ROLL_OUT, onRollout,false,0,true);
		}
		
		private function onRollover(e:Event):void
		{
			this.setStyle('textDecoration','underline');
		}
		
		private function onRollout(e:Event):void
		{
			this.setStyle('textDecoration','');
		}		
		
	}
}